package org.linlinjava.litemall.db.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallCommission;

import java.util.List;

/**
 * 用户佣金
 */
@Mapper
public interface LitemallCommissionMapper {
    /**
     * 查询用户佣金
     */
    LitemallCommission queryByUserId(@Param("userId") Integer userId);

    List<LitemallCommission> queryCommissionList(@Param("params") LitemallCommission params, @Param("sort") String sort, @Param("order") String order);

    int updateCommission(LitemallCommission commission);

    int saveCommission(LitemallCommission commission);

}
